package com.diaosidadui.demo;

import java.util.Scanner;

public class DemoSwitch {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("棒棒糖查询系统");
        System.out.println(1+"|"+2+"|"+3+"|"+4+"|"+5+"|"+6+"|"+7+"|"+"0: 退出");

        lo:for (int i = 0; i < 1; i++) {
            System.out.println("请输入需要查询的星期数:");
            int week = sc.nextInt();
            if(week==0){
                break lo;
            }
            i--;
            switch (week) {
                case 1:
                    System.out.println(week + "根棒棒糖");
                    break;
                case 2:
                    System.out.println(week + "根棒棒糖");
                    break;
                case 3:
                    System.out.println(week + "根棒棒糖");
                    break;
                case 4:
                    System.out.println(week + "根棒棒糖");
                    break;
                case 5:
                    System.out.println(week + "根棒棒糖");
                    break;
                case 6:
                    System.out.println(week + "根棒棒糖");
                    break;
                case 7:
                    System.out.println("喜得糖尿病");
                    break;
                default:
                    System.out.println("输入的星期数不存在");
            }
        }



    }
}
